/*******************************************************************
 * 外语翻译平台(translate) 
 *
 * 成都一亿信息技术公司 版权所有
 * 
 * Copyright (C) 2010 Transer Information Technology Co., Ltd.
 *
 * @Version : 1.0  2010-12-26 下午07:34:45
 *
 * StartMailSender.java 
 *
 *******************************************************************/
package com.transer.mail;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;

import com.transer.console.ConsoleConstants;
import com.transer.utils.JobQueueOB;

/**
 * class defination are there
 * 
 * @author Mark
 * 
 * @version 1.0 ywengineer@gmail.com
 * 
 */
public class StartMailSender implements InitializingBean {
	private static final Logger logger = Logger.getLogger(StartMailSender.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
	 */
	public void afterPropertiesSet() throws Exception {
		JobQueueOB.JOB_QUEUE_SIZE = ConsoleConstants.QUEUE_SIZE;
		// 启动后台线程
		JobQueueOB.getInstance();

		logger.info(this.getClass().getName() + " started");
	}
}
